<?php

namespace App\Controller\Admin;

use App\Services\TestServices;
use Hyperf\HttpServer\Annotation\AutoController;
use Hyperf\Di\Annotation\Inject;
//测试inject依赖注入
#[AutoController]
class TestInjectController extends BaseController
{

    #[Inject]
    private TestServices $testServices;
    public function test(): string
    {
        return $this->testServices->test();
    }
}